package com.nuanshui.heatedloan.credit.facade.third.party;

import com.nuanshui.heatedloan.credit.form.CustomerPhoneInfoForm;
import com.nuanshui.heatedloan.credit.response.RiskResponse;
import com.nuanshui.heatedloan.credit.vo.CustomerPhoneInfoVO;

import java.util.List;

/**
 * Created by wangxw on 2017/6/30.
 */
public interface PhoneNumAuthService {



    /***
     * 手机认证
     * @param customerPhoneInfoForm  手机认证实体类
     * @param smsCode  短信验证码
     * @return
     */
    public RiskResponse mobilePhoneAuth(CustomerPhoneInfoForm customerPhoneInfoForm, String smsCode) ;



    /***
     * 保存手机认证的所有的数据
     * @param CustomerPhoneInfoForm
     */
    CustomerPhoneInfoForm saveCustomerPhoneInfo(CustomerPhoneInfoForm CustomerPhoneInfoForm);


    /***
     * 根据用户id获取用户手机认证数据
     * @param userId
     * @return
     */
    CustomerPhoneInfoVO loadVOByUserId(String userId);

    /***
     * 更新手机记录的状态为0
     * @param userId
     */
    public void updateStatusByUserId(String userId);

    /***
     * 所有的数据
     * @return
     */
    public List<CustomerPhoneInfoVO> loadAllVO();
}
